package com.cn.front.feign.fallBack;

import com.cn.common.pojo.ResultModel;
import com.cn.front.feign.TeamForHomeFeign;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class TeamForHomeFallBack implements TeamForHomeFeign {
    @Override
    public ResultModel team() {
        return ResultModel.Data(team().getData());
    }

    @Override
    public ResultModel teamForTeam() {
        return ResultModel.Data(teamForTeam().getData());
    }
}
